package com.woniuxy.lastfactory;

import com.woniuxy.secondfactory.Person;

/**
 * @Author 罗蔚
 * @Date 2022/3/23 15:05
 * @Description 测试类
 */
public class Main {
    public static void main(String[] args) {
        BeanFactory2 beanFactory = new BeanFactory2();
        Person person = (Person) beanFactory.getBean("chinese");
        System.out.println(person);
        person.show();
        Person person1 = (Person) beanFactory.getBean("chinese");
        System.out.println(person1);
        person1.show();
        Person person2 = (Person) beanFactory.getBean("chinese");
        System.out.println(person2);
        person2.show();
    }
}
